<?php

use Illuminate\Database\Seeder;

class TableSeeder extends Seeder
{
    /**
     * @author 张健领测试
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        for($i=0;$i<30; $i++) {
			DB::table('shop_goods')->insert([
				'gname' => str_random(6),
				'sales' => mt_rand(1,9999),
				'clicknum' => mt_rand(1,500),
				'store' => mt_rand(1,9999),
				'typeid' => 1,
				'company' => str_random(5),
				'time_shelf' => time(),
				'time_list' => time(),
				'status' => mt_rand(1,3),
				'pic' => str_random(8).'.png',
			]);
		}
    }
}
